

// global
export const HIDE_ALL_MODALS = 'HIDE_ALL_MODALS'
export const CHANGE_LANG = 'CHANGE_LANG'

// cell actions
export const CHANGE_CELL_LIST = 'CHANGE_CELL_LIST'
export const HANDLE_ADD_CELL = 'HANDLE_ADD_CELL'
export const HADNLE_DELETE_CELL = 'HADNLE_DELETE_CELL'
export const HANDLE_EXCUTE_CELL = 'HANDLE_EXCUTE_CELL'
export const GET_JOB_STATUS = 'GET_JOB_STATUS'
export const CREATE_CELL = 'CREATE_CELL'
export const DELETE_CELL = 'DELETE_CELL'

// notebook list
export const GET_NOTEBOOK_LIST = 'GET_NOTEBOOK_LIST'
export const CREATE_NOTEBOOK_LIST = 'CREATE_NOTEBOOK_LIST'
export const RENAME_NOTEBOOK = 'RENAME_NOTEBOOK'
export const CLONE_NOTEBOOK = 'CLONE_NOTEBOOK'
export const DEL_NOTEBOOK = 'DEL_NOTEBOOK'
export const SAVE_NOTEBOOK = 'SAVE_NOTEBOOK'
export const GET_NOTEBOOK_BY_ID = 'GET_NOTEBOOK_BY_ID'
export const CANCEL_EXCUTE_CELL = 'CANCEL_EXCUTE_CELL'
export const GET_JOB_PROCESS = 'GET_JOB_PROCESS'
export const GET_CURRENT_SCRIPT = 'GET_CURRENT_SCRIPT'
export const SAVE_OPEND_NOTEBOOK = 'SAVE_OPEND_NOTEBOOK'
export const GET_OPENED_NOTEBOOK = 'GET_OPENED_NOTEBOOK'
export const SET_NOTEBOOK_LIST = 'SET_NOTEBOOK_LIST'
export const SET_OPENED_NOTEBOOK = 'SET_OPENED_NOTEBOOK'
export const SET_ACTIVE_NOTEBOOK = 'SET_ACTIVE_NOTEBOOK'
export const SET_DEMO_LIST = 'SET_DEMO_LIST'
export const SET_LOADED_CELL_LIST = 'SET_LOADED_CELL_LIST'
export const RESET_LOADED_CELL_LIST = 'RESET_LOADED_CELL_LIST'
export const REMOVE_LOADED_CELL_LIST = 'REMOVE_LOADED_CELL_LIST'
export const CREATE_FOLDER = 'CREATE_FOLDER'
export const MOVE_NOTEBOOK = 'MOVE_NOTEBOOK'
export const MOVE_FOLDER = 'MOVE_FOLDER'
export const DELETE_FOLDER = 'DELETE_FOLDER'
export const RENAME_FOLDER = 'RENAME_FOLDER'
export const CLONE_FOLDER = 'CLONE_FOLDER'
export const IMPORT_NOTEBOOK = 'IMPORT_NOTEBOOK'
export const EXPORT_NOTEBOOK = 'EXPORT_NOTEBOOK'
export const GET_DEFAULT_NOTEBOOK = 'GET_DEFAULT_NOTEBOOK'
export const CLEAR_RESULT = 'CLEAR_RESULT'
export const CHANGE_SIDE_BAR_VISIBLE = 'CHANGE_SIDE_BAR_VISIBLE'
export const CHANGE_NOTEBOOK_MODE = 'CHANGE_NOTEBOOK_MODE'
export const AUTO_COMPLETE = 'AUTO_COMPLETE'
export const SET_DEMO = 'SET_DEMO'
export const OFFLINE_DEMO = 'OFFLINE_DEMO'
export const CHANGE_RUN_ALL = 'CHANGE_RUN_ALL'
export const CHANGE_SHOW_PROGRESS = 'CHANGE_SHOW_PROGRESS'


export const SET_RUN_RESULT = 'SET_RUN_RESULT'

// workflow
export const CHANGE_ACTIVE_SIDEBAR = 'CHANGE_ACTIVE_SIDEBAR'
export const CREATE_WORKFLOW = 'CREATE_WORKFLOW'
export const CREATE_WORKFLOW_NODE = 'CREATE_WORKFLOW_NODE'
export const GET_NODE_LIST = 'GET_NODE_LIST'
export const GET_WORKFLOW_PREVIEW = 'GET_WORKFLOW_PREVIEW'
export const SAVE_WORKFLOW_AS_NOTEBOOK = 'SAVE_WORKFLOW_AS_NOTEBOOK'
export const CHECK_MLSQL = 'CHECK_MLSQL'
export const GET_NODE_INFO = 'GET_NODE_INFO'
export const UPDATE_FLOW_NODE = 'UPDATE_FLOW_NODE'
export const SET_CURRENT_DRAG_NODE = 'SET_CURRENT_DRAG_NODE'
export const GET_EXISTING_TABLE = 'GET_EXISTING_TABLE'
export const UPDATE_NODE_POSITION = 'UPDATE_NODE_POSITION'
export const DELETE_WORKFLOW_NODE = 'DELETE_WORKFLOW_NODE'
export const GET_EXISTING_MODEL = 'GET_EXISTING_MODEL'
export const GET_LOAD_PARAMS = 'GET_LOAD_PARAMS'
export const RUN_WORKFLOW = 'RUN_WORKFLOW'
// et 节点相关
export const GET_ET_LIST = 'GET_ET_LIST'
export const GET_ET_PARAMS = 'GET_ET_PARAMS'
export const GET_ET_DEPENENCY = 'GET_ET_DEPENENCY'
export const SET_NODE_LIST = 'SET_NODE_LIST'

// dialog mutations and actions
export const CALL_MODAL = 'CALL_MODAL'
export const CLOSE_MODAL = 'CLOSE_MODAL'
export const SET_MODAL = 'SET_MODAL'
export const SET_FAILURE_DETAIL = 'SET_FAILURE_DETAIL'
export const SET_TASK_INFO = 'SET_TASK_INFO'
export const SET_DATA = 'SET_DATA'
export const SET_MODAL_FORM = 'SET_MODAL_FORM'
export const SHOW_MODAL = 'SHOW_MODAL'
export const HIDE_MODAL = 'HIDE_MODAL'
export const RESET_MODAL = 'RESET_MODAL'
export const RESET_MODAL_FORM = 'RESET_MODAL_FORM'

export const SET_EDIT_INFO = 'SET_EDIT_INFO'

// login actions
export const HANDLE_LOGIN = 'HANDLE_LOGIN'
export const HANDLE_SIGN_UP = 'HANDLE_SIGN_UP'
export const HANDLE_LOGOUT = 'HANDLE_LOGOUT'

export const GET_USER_INFO = 'GET_USER_INFO'
export const SET_USER_INFO = 'SET_USER_INFO'
export const SET_USER_ROUTE = 'SET_USER_ROUTE'
export const SET_USER_PERMISSONS = 'SET_USER_PERMISSONS'
export const CLEAR_USER_INFO = 'CLEAR_USER_INFO'

// global
export const GET_ENV = 'GET_ENV'
export const SET_CURRENT_ENV = 'SET_CURRENT_ENV'
export const SET_SCHEDULE_ENABLE = 'SET_SCHEDULE_ENABLE'

// data catalog
export const GET_DB_LIST = 'GET_DB_LIST'
export const GET_TABLE_LIST = 'GET_TABLE_LIST'
export const UPLOAD_SYSTEM_FILE = 'UPLOAD_SYSTEM_FILE'
export const GET_FILE_LIST = 'GET_FILE_LIST'
export const DELETE_UPLOAD_FILE = 'DELETE_UPLOAD_FILE'

// jobs
export const GET_JOB_LIST = 'GET_JOB_LIST'
export const START_EXCUTE = 'START_EXCUTE'
export const GET_CODE_BY_ID = 'GET_CODE_BY_ID'
export const DELETE_JOBS = 'DELETE_JOBS'
export const GET_JOB_LOGS = 'GET_JOB_LOGS'

// schedule
export const GET_SCHEDULE_LIST = 'GET_SCHEDULE_LIST'
export const GET_INSTANCE_BY_ID = 'GET_INSTANCE_BY_ID'
export const GET_NOTEBOOK_INFO = 'GET_NOTEBOOK_INFO'
export const GET_TASK_INFO = 'GET_TASK_INFO'
export const GET_INSTANCE_LIST = 'GET_INSTANCE_LIST'
export const GET_INSTANCE = 'GET_INSTANCE'
export const SET_SCHEDULE = 'SET_SCHEDULE'
export const UPDATE_SCHEDULE = 'UPDATE_SCHEDULE'
export const RUN_SCHEDULE = 'RUN_SCHEDULE'
export const DELETE_SCHEDULE = 'DELETE_SCHEDULE'
export const TOGGLE_SCHEDULE = 'TOGGLE_SCHEDULE'
export const SET_INSTANCE_STATE = 'SET_INSTANCE_STATE'
export const ONLINE_SCHEDULE = 'ONLINE_SCHEDULE'
export const OFFLINE_SCHEDULE = 'OFFLINE_SCHEDULE'

// settings
export const GET_ENGINE_LIST = 'GET_ENGINE_LIST'
export const SAVE_CONFIG = 'SAVE_CONFIG'
export const GET_CONFIGS = 'GET_CONFIGS'
export const RESET_TIMEOUT = 'RESET_TIMEOUT'

export const CHECK_CONNECTION = 'CHECK_CONNECTION'
export const GET_CONNECTION_LIST = 'GET_CONNECTION_LIST'
export const CREATE_CONNECTION = 'CREATE_CONNECTION'
export const GET_CONNECTION_TABLE = 'GET_CONNECTION_TABLE'
export const UPDATE_CONNECTION = 'UPDATE_CONNECTION'
export const DELETE_CONNECTION = 'DELETE_CONNECTION'

export const GET_ALGORITHM_LIST = 'GET_ALGORITHM_LIST'
export const GET_PARAM_BY_ID = 'GET_PARAM_BY_ID'
export const SET_ENGINE_INFO = 'SET_ENGINE_INFO'
export const GET_ENGINE_INFO = 'GET_ENGINE_INFO'


// 项目管理
export const SET_PROJECT = 'SET_PROJECT'
export const DELETE_PROJECT = 'DELETE_PROJECT'
export const GET_PROJECT_LIST = 'GET_PROJECT_LIST'
export const GET_PROJECT_BY_ID = 'GET_PROJECT_BY_ID'
export const UPDATE_PROJECT = 'UPDATE_PROJECT'

// 数据源
export const SET_DATA_SOURCE = 'SET_DATA_SOURCE'
export const DELETE_DATA_SOURCE = 'DELETE_DATA_SOURCE'
export const GET_DATA_SOURCE_LIST = 'GET_DATA_SOURCE_LIST'
export const GET_DATA_SOURCE_BY_ID = 'GET_DATA_SOURCE_BY_ID'
export const UPDATE_DATA_SOURCE = 'UPDATE_DATA_SOURCE'
export const TEST_CONNECT = 'TEST_CONNECT'
export const GET_CONNECTION_TYPES = 'GET_CONNECTION_TYPES'
export const GET_CONNECTION_LIST_BY_PROJECT = 'GET_CONNECTION_LIST_BY_PROJECT'

// API管理
export const GET_API_TREE = 'GET_API_TREE'
export const POST_API_CATALOG = 'POST_API_CATALOG'
export const PUT_API_CATALOG = 'PUT_API_CATALOG'
export const DELETE_API_CATALOG = 'DELETE_API_CATALOG'
export const GET_API_EXPORT = 'GET_API_EXPORT'
export const POST_API_IMPORT = 'POST_API_IMPORT'
export const POST_API_DATABASES = 'POST_API_DATABASES'
export const GET_ALL_API_DATABASES = 'GET_ALL_API_DATABASES'
export const POST_API_TABLES = 'POST_API_TABLES'
export const POST_API_COLUMNS = 'POST_API_COLUMNS'
export const GET_API_DETAILS = 'GET_API_DETAILS'
export const DELETE_API = 'DELETE_API'
export const POST_ADD_API = 'POST_ADD_API'
export const PUT_EDIT_API = 'PUT_EDIT_API'

// 资源管理
export const GET_ENGINEINFO_LIST = 'GET_ENGINEINFO_LIST'

// API监控
export const POST_LOG_LIST = 'POST_LOG_LIST'

// 资源管理
export const POST_ENGINE_LISTOFPAGE = 'POST_ENGINE_LISTOFPAGE'
export const DELETE_ENGINE_BATCHDELETE = 'DELETE_ENGINE_BATCHDELETE'
export const GET_ENGINE_INFO_ID = 'GET_ENGINE_INFO_ID'
export const PUT_ENGINE_INFO_ID = 'PUT_ENGINE_INFO_ID'
export const DELETE_ENGINE_INFO_ID = 'DELETE_ENGINE_INFO_ID'
export const POST_ADD_ENGINEINFO = 'POST_ADD_ENGINEINFO'


// 接口令牌
export const GET_ACCESSTOKEN_LIST = 'GET_ACCESSTOKEN_LIST'
export const SET_ACCESSTOKEN = 'SET_ACCESSTOKEN'
export const UPDATE_ACCESSTOKEN = 'UPDATE_ACCESSTOKEN'
export const START_ACCESSTOKEN = 'START_ACCESSTOKEN'
export const STOP_ACCESSTOKEN = 'STOP_ACCESSTOKEN'
export const DELETE_ACCESSTOKEN = 'DELETE_ACCESSTOKEN'


